package designMode.singleton;

public class ThreadSafety {

	private static ThreadSafety e = null;

	private ThreadSafety() {
	}

	public static ThreadSafety getInstance() {
		if (e == null) {
			synchronized (ThreadSafety.class) {
				if (e == null)
					e = new ThreadSafety();
			}
		}
		return e;
	}

	public static void main(String[] args) {
		// TODO �Զ����ɵķ������
	}
}
